package com.xii.eduservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xii.eduservice.entity.EduChapter;
import com.xii.eduservice.entity.chapter.ChapterVo;
import com.xii.eduservice.entity.frontvo.CourseWebVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author xhjava
 * @since 2022-02-13
 */
public interface EduChapterService extends IService<EduChapter> {

    //获得所有章节
    List<ChapterVo> nestedList(String courseId);

    //删除章节 有小节不允许删除
    boolean deleteChapter(String chapterId);

    //删除章节
    void removeChapterByCourseId(String courseId);


}
